

#ifndef SHA256
#define SHA256

#include "../std/Inori_Type.h"
typedef struct
{
    i_u64   length;
    i_u32    state[8];
    i_u32    curlen;
    i_byte     buf[64];
} Sha256Context;

#define SHA256_HASH_SIZE           ( 256 / 8 )

typedef struct
{
    i_byte      bytes [SHA256_HASH_SIZE];
} SHA256_HASH;



void Sha256Calculate(void*Buffer,  i_u32 BufferSize, SHA256_HASH*Digest  );

void Sha256CalculateHashString(void *buffer,i_u32 bufferSize,char stringKey[32]);
#endif

